<?php
class AppController extends Controller {
    function beforeFilter(){
    	$this->Auth->loginAction = array('admin' => true, 'controller' => 'login', 'action' => 'login');
    	$this->Auth->loginError = 'ユーザ／パスワードの組み合わせが無効です';
    	$this->Auth->authError = "ログインしてください";
    	$this->Auth->loginRedirect = array('controller' => 'login', 'action' => 'admin_index');
    	$this->Auth->fields = array('username' => 'name', 'password' => 'hashed_password');
    }
}
?>
